import request from '@/utils/request'
import {parseStrEmpty} from "@/utils/ruoyi";

// 查询发音人列表
export function listSpeakerInfo(query) {
  return request({
    url: '/speakerInfo/config/selectSpeakerInfoList',
    method: 'get',
    params: query
  })
}


// 新增发音人
export function insertSpeakerInfo(data) {
  return request({
    url: '/speakerInfo/config/insertSpeakerInfo',
    method: 'post',
    data: data
  })
}

//查询详情
export function selectSpeakerInfo(uid) {
  return request({
    url: '/speakerInfo/config/selectSpeakerInfo/' + parseStrEmpty(uid),
    method: 'get',
  })
}


//删除发音人
export function deleteSpeakerInfo(data) {
  return request({
    url: '/speakerInfo/config/deleteSpeakerInfo',
    method: 'post',
    data: data
  })
}

// 修改发音人状态
export function updateSpeakerInfoStatus(data) {
  return request({
    url: '/speakerInfo/config/updateSpeakerInfoStatus',
    method: 'post',
    data: data
  })
}


// 修改aiui配置信息
export function updateSpeakerInfo(data) {
  return request({
    url: '/speakerInfo/config/updateSpeakerInfo',
    method: 'post',
    data: data
  })
}
